//
//  PickNumSportItemBFONeCell.m
//  PlayBall
//
//  Created by Jdd‘s macbook on 13-10-30.
//
//

#import "JddPickNumSportItemBFOpenFirstCell.h"

@implementation JddPickNumSportItemBFOpenFirstCell
GET_INSTANCE_VIEW_IMPLEMENT(JddPickNumSportItemBFOpenFirstCell)

-(IBAction)btnAction:(id)sender
{
    UIButton *btn = (UIButton *)sender;
    UILabel *lbl = self.btn1DownText;
    if(btn == self.btn1){
        lbl = self.btn1DownText;
    }else if(btn == self.btn2){
        lbl = self.btn2DownText;
    }else if(btn == self.btn3){
        lbl = self.btn3DownText;
    }else if(btn == self.btn4){
        lbl = self.btn4DownText;
    }else if(btn == self.btn5){
        lbl = self.btn5DownText;
    }else if(btn == self.btn6){
        lbl = self.btn6DownText;
    }else if(btn == self.btn7){
        lbl = self.btn7DownText;
    }else if(btn == self.btn8){
        lbl = self.btn8DownText;
    }else if(btn == self.btn9){
        lbl = self.btn9DownText;
    }else if(btn == self.btn10){
        lbl = self.btn10DownText;
    }else if(btn == self.btn11){
        lbl = self.btn11DownText;
    }else if(btn == self.btn12){
        lbl = self.btn12DownText;
    }else{
        lbl = self.btn13DownText;
    }
    if (btn.selected) {
        [lbl setTextColor:[UIColor brownColor]];
    }else{
        [lbl setTextColor:[UIColor whiteColor]];
    }
    NSArray *arr = [NSArray arrayWithObjects:btn, self.indexPath, nil];
    self.aSportNumber.teamArray= [[NSMutableArray alloc] initWithObjects:btn.titleLabel.text, nil];
    [self.delegate performSelector:@selector(sportTeamButtonClicked:number:) withObject:arr withObject:self.aSportNumber];
}
- (void)awakeFromNib
{
    self.btn1.layer.borderColor = BORDER_COLOR;
    self.btn1.layer.borderWidth = 0.5;
    
    self.btn2.layer.borderColor = BORDER_COLOR;
    self.btn2.layer.borderWidth = 0.5;
    
    self.btn3.layer.borderColor = BORDER_COLOR;
    self.btn3.layer.borderWidth = 0.5;
   
    self.btn4.layer.borderColor = BORDER_COLOR;
    self.btn4.layer.borderWidth = 0.5;
    
    self.btn5.layer.borderColor = BORDER_COLOR;
    self.btn5.layer.borderWidth = 0.5;
    
    self.btn6.layer.borderColor = BORDER_COLOR;
    self.btn6.layer.borderWidth = 0.5;

    self.btn7.layer.borderColor = BORDER_COLOR;
    self.btn7.layer.borderWidth = 0.5;
    
    self.btn8.layer.borderColor = BORDER_COLOR;
    self.btn8.layer.borderWidth = 0.5;
    
    self.btn9.layer.borderColor = BORDER_COLOR;
    self.btn9.layer.borderWidth = 0.5;

    self.btn10.layer.borderColor = BORDER_COLOR;
    self.btn10.layer.borderWidth = 0.5;
    
    self.btn11.layer.borderColor = BORDER_COLOR;
    self.btn11.layer.borderWidth = 0.5;
    
    self.btn12.layer.borderColor = BORDER_COLOR;
    self.btn12.layer.borderWidth = 0.5;
    
    self.btn13.layer.borderColor = BORDER_COLOR;
    self.btn13.layer.borderWidth = 0.5;

    
}

@end
